Resource()

Shift & Break System Function

Syntax samples

RESOURCE ()

Description

Returns the name-index number of the resource currently processing the off-shift or break logic.

Valid In

Pre-Off Shift, Off-shift, Pre-Break, Break, Resource Clock DT, Resource Usage DT, Resource Node and Subroutine logic.

Example

Suppose you have locations and resources as members in a shift file assignment and you want to wait until variable Parts_To_Process is equal to zero before allowing a particular resource called Operator to go off shift. You would enter the following pre-off shift logic:

IF FORRESOURCE() THEN

BEGIN

IF RESOURCE() = Operator THEN

BEGIN

WAIT UNTIL Parts_To_Process = 0

END

END

See Also

LOCATION(), FORLOCATION(), and FORRESOURCE().